//
//  Strategy.m
//  策略模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "Strategy.h"

@implementation OperationAdd

- (int)doOperationNum1:(int)num1 num2:(int)num2{
    return num1 + num2;
}

@end

@implementation OperationSubstract

- (int)doOperationNum1:(int)num1 num2:(int)num2{
    return  num1 - num2;
}

@end

@implementation OperationMultiply

- (int)doOperationNum1:(int)num1 num2:(int)num2{
    return num1 * num2;
}

@end
